package com.gitee.target123.develop.pay;

import com.gitee.target123.develop.pay.ali.AliPayProperties;
import com.gitee.target123.develop.pay.wx.WxPayProperties;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.NestedConfigurationProperty;

@ConfigurationProperties(prefix = "pay.single")
public class PaySingleProperties {
    /**
     * 是否启用单个 微信支付
     */
    private boolean wxEnabled = false;

    @NestedConfigurationProperty
    private WxPayProperties wx = new WxPayProperties();

    /**
     * 是否启用单个 支付宝支付
     */
    private boolean aliEnabled = false;

    @NestedConfigurationProperty
    private AliPayProperties ali = new AliPayProperties();

    public boolean isWxEnabled() {
        return wxEnabled;
    }

    public void setWxEnabled(boolean wxEnabled) {
        this.wxEnabled = wxEnabled;
    }

    public WxPayProperties getWx() {
        return wx;
    }

    public void setWx(WxPayProperties wx) {
        this.wx = wx;
    }

    public boolean isAliEnabled() {
        return aliEnabled;
    }

    public void setAliEnabled(boolean aliEnabled) {
        this.aliEnabled = aliEnabled;
    }

    public AliPayProperties getAli() {
        return ali;
    }

    public void setAli(AliPayProperties ali) {
        this.ali = ali;
    }
}
